﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Growatt.ShinebusService.Model
{

    public class FirmwareUploadInfoRequest
    {
        /// <summary>
        /// 上一版固件包路径
        /// </summary>
        public string OldPackagePath { get; set; }

        /// <summary>
        /// 本次发布固件包路径
        /// </summary>
        public string NewPackagePath { get; set; }
        /// <summary>
        /// 中文更新日志
        /// </summary>
        public string ChineseLog { get; set; }

        /// <summary>
        /// 英文更新日志
        /// </summary>
        public string EnglishLog { get; set; }
        /// <summary>
        /// 是否首次上传
        /// </summary>
        /// <remarks>
        /// 0：表示不是首次上传，OldPackagePath 表示上一版路径
        /// 1：表示是首次上传，NewPackagePath 表示本次发布路径
        /// </remarks>
        public int IsFirstUpload { get; set; } = 1;
        public List<string> Server = new List<string>();


        public FirmwareUploadInfoRequest(string oldPackagePath, string newPackagePath, string chineseLog, string englishLog, int isFirstUpload)
        {
            OldPackagePath = oldPackagePath;
            NewPackagePath = newPackagePath;
            ChineseLog = chineseLog;
            EnglishLog = englishLog;
            IsFirstUpload = isFirstUpload;
        }
    }
 

}
